package edu.sctu.zhengsenwen.month201506.day20150623.keyword;

/**
 * Created by user15 on 2015/6/23.
 */
public class InstanceofDemo {

    public static void main(String[] args) {

        String string = "Instance of String.";
        if(string instanceof String){
            System.out.println("对象string是类String的实例");
        }else{
            System.out.println("对象string不是类String的实例");
        }
    }
}
